/**
 * @file    soc_calc.h
 * @brief   计算SOC
 * @author  Liuwei
 * @version 1.0.1
 * @date    2023-04-19
 * 
 * @copyright Copyright (c) 2023 JBD-Energy Storage Technology Co. LTD
 * 
 * @par 修改日志:
 * <table>
 * <tr><th>Date       <th>Version   <th>Author   <th>Description
 * <tr><td>2023-04-19 <td>1.0.1     <td>Liuwei   <td>首次创建
 * </table>
 */

#ifndef __SOC_CALC_H_
#define __SOC_CALC_H_

/* File Includes -------------------------------------------------------------*/
#include <stdint.h>
/* Cplusplus -----------------------------------------------------------------*/
#ifdef __cplusplus
extern "C" {
#endif

/* Macro/Define/Typedef ------------------------------------------------------*/
/* @brief */

/* Variables -----------------------------------------------------------------*/

/*******************************************************************************
* define Interface module
*
*//*! @addtogroup API LIST 
*******************************************************************************/
void soc_calc_init(void);
void soc_calc_ampere(uint32_t time);
void soc_calc(uint16_t run_cycle);
void soc_calc_set_soc(uint16_t soc_val);
void soc_set_acc_chg(uint32_t set_val);
void soc_set_acc_dsg(uint32_t set_val);
void soc_set_cycle(uint16_t set_val);
void soc_ask_full_chg(uint16_t cycle);
/*! @} End of Interface API List */

#ifdef __cplusplus
}
#endif

#endif  /* #ifndef __SOC_CALC_H_ */
/********** Copyright (c) 2023 JBD-Energy Storage Technology Co. LTD *********/
